{include file="public/header" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <div class="tab-content">
                        <div class="ibox-content">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">状态：</label>
                                <div class="col-sm-9">
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio" value="0" name="is_contact" {present name="data"}{eq name="data.is_contact" value="0"}checked{/eq}{else /}checked{/present}>未联系
                                        </label>
                                        <label>
                                            <input type="radio" value="1" name="is_contact" {present name="data"}{eq name="data.is_contact" value="1"}checked{/eq}{/present}>已联系
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">标签：</label>
                                <div class="col-sm-9">
                                    <input name="tags" type="text"  class="form-control" value="{present name='data.tags'}{$data.tags}{/present}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">联系人：</label>
                                <div class="col-sm-9">
                                    <input name="contacts" type="text"  class="form-control" value="{present name='data.contacts'}{$data.contacts}{/present}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">联系时间：</label>
                                <div class="col-sm-9">
                                    <input name="contact_time" type="text" id="time" class="form-control layui-input" value="{present name='data.contact_time'}{if condition='$data.contact_time'}{:date('Y-m-d H:i:s', $data.contact_time)}{/if}{/present}" autocomplete="off"  style="width: 30%;float: left;">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })

        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render ({
                elem : '#time', //指定元素
                type : 'datetime',
                trigger: 'click'
            });
        });
    });
</script>
{include file="public/bottom" /}

